package basic.courseLearn07;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

//图中的边
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Edge {

    public int weight; //边的权重

    public Node from; //边的起点
    public Node to; //边的终点



    @Override
    public int hashCode() {
        return Objects.hash(getWeight());
    }
}
